package ${classPath};

import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;
import org.mapstruct.factory.Mappers;

/**
 * ${domain} PO转DTO、DTO转PO等一些实体转换类
 * @author APPLE
 *
 */
@Mapper(componentModel="spring")
public interface ${domain}Mapper {
  ${domain}Mapper INSTANCE = Mappers.getMapper(${domain}Mapper.class);

  ${domain}QueryBo commandToBo(${domain}QueryCommand command);

  ${domain}AddBo commandToBo(${domain}AddCommand command);

  ${domain}EditBo commandToBo(${domain}EditCommand command); 

  void  update(${domain}EditBo bo, @MappingTarget ${domain}  entity); 

  void  update(${domain}AddBo bo, @MappingTarget ${domain}  entity); 
  
  ${domain}Vo entityToVo(${domain}  entity); 
}
